home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / man / man-part1 / cat1 / rational.1 < prev    next >
Text File  |  1999-09-16  |  824b  |  67 lines

  1.  
  2.  
  3.  
  4. rational(1)                    Scilab Function                    rational(1)
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. NAME
  12.   "Scilab object : rationals" - rational in Scilab
  13.  
  14. DESCRIPTION
  15.   A rational r is a quotient of two polynomials r=num/den.  The internal
  16.   representation of a rational is a list.  r=list('r',num,den,[]) is the same
  17.   as r=num/den.  A rational matrix can be defined with the usual syntax e.g.
  18.   [r11,r12;r21,r22] is a 2x2 matrix where rij are 1x1 rationals.  A rational
  19.   matrix can also be defined as above as a list list('r',num,den,[]) with num
  20.   and den polynomial matrices.
  21.  
  22. EXAMPLES
  23.   s=poly(0,'s');
  24.   W=[1/s,1/(s+1)]
  25.   W'*W
  26.   Num=[s,s+2;1,s];Den=[s*s,s;s,s*s];
  27.   list('r',Num,Den,[])
  28.   H=Num./Den
  29.   syslin('c',Num,Den)
  30.   syslin('c',H)
  31.   [Num1,Den1]=simp(Num,Den)
  32.  
  33. SEE ALSO
  34.   poly, syslin, simp
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.